static gboolean
get_widget_coordinates (GtkWidget *widget,
GdkEvent *event,
- gint *x,
- gint *y)
+ gdouble *x,
+ gdouble *y)
{
GdkWindow *window = ((GdkEventAny *)event)->window;
gdouble tx, ty;
}
static GList*
-get_tab_at_pos (GtkNotebook *notebook, gint x, gint y)
+get_tab_at_pos (GtkNotebook *notebook,
+ gdouble x,
+ gdouble y)
{
GtkNotebookPrivate *priv = notebook->priv;
GtkNotebookPage *page;
GtkNotebookPage *page;
GList *tab;
GtkNotebookArrow arrow;
- gint x, y;
+ gdouble x, y;
if (event->type != GDK_BUTTON_PRESS || !priv->children ||
priv->button)
{
GtkNotebookPrivate *priv = notebook->priv;
GList *tab;
- gint x, y;
+ gdouble x, y;
if (get_widget_coordinates (GTK_WIDGET (notebook), (GdkEvent *)event, &x, &y))
{
{
GtkNotebook *notebook = GTK_NOTEBOOK (widget);
GtkNotebookPrivate *priv = notebook->priv;
- gint x, y;
+ gdouble x, y;
if (get_widget_coordinates (widget, (GdkEvent *)event, &x, &y))
{